import { defHttp } from '/@/utils/http/axios';
// import { useMessage } from '/@/hooks/web/useMessage';

enum Api {
  AddCodeGeneration = 'code-gen/generate',
}
// const { createMessage } = useMessage();

/**
 * @returns 新增 代码生成 数据
 */
export function addCodeGeneration(params) {
  return defHttp.post<any>(
    {
      url: Api.AddCodeGeneration,
      params,
    },
    // { errorMessageMode: 'none' },
  );
}

